package com.kh.samr.enums;

import com.kh.samr.service.IEnum;
import com.kh.samr.utils.EnumUtils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

import java.util.Map;

/**
 * 证件类型枚举类
 *
 * @Author Harry
 * @Date 2020/12/28
 */
@ToString
@Getter
@AllArgsConstructor
public enum IdType implements IEnum {
	
	ID(0, "身份证"),
	PASSPORT(1, "护照");
	
	private final int code;
	
	private final String value;
	
	@Override
	public Map<Integer, String> getMap() {
		return EnumUtils.getMapByCode(IdType.class, this.getCode());
	}
}
